package com.gientech.group9.entity.response;

/**
 * Created by wen on 2020-01-03
 */
public enum ResponseInfo {
    SUCCESS(200, "success"),
    DESC(0,"成功"),
    ERR_DESC(1,"失败"),
    MSG(200,"请求成功"),
    ERR_MSG(500,"请求失败"),
    USER_NOT_FOUND(300, "用户不存在或未登录"),
    USER_INVALID(400, "用户被禁用"),
    ERROR(500, "系统繁忙"),
    PARAM_ERROR(400,"接口调用参数错误"),
    USER_INVALID_ERR(401, "认证失败"),

    AUTH_ERROR(1000, "登录失效，请重新登录"),
    LIMIT_ERROR(1001, "操作太频繁啦"),

    ARRANGE_TABLE_ERROR(2002, "暂无排班信息.");

    public final int code;

    public final String msg;

    private ResponseInfo(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
